package com.example.xd.defaultcall;

import android.app.Application;

import androidx.appcompat.app.AppCompatActivity;

import com.liulishuo.filedownloader.FileDownloader;

/**
 * @auther XuDan on 2020/6/3.
 */
public class MyApp extends Application {

    public AppCompatActivity mUIActivity;

    @Override
    public void onCreate() {
        super.onCreate();
        FileDownloader.setupOnApplicationOnCreate(this);
    }

    public void setActivity(AppCompatActivity activity) {
        mUIActivity = activity;
    }

    public AppCompatActivity getActivity() {
        return mUIActivity;
    }
}
